package br.com.guiav6.sisguia.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import br.com.guiav6.sisguia.dao.MapaDao;
import br.com.guiav6.sisguia.entity.Mapa;
import br.com.guiav6.sisguia.service.MapaService;

@Service("mapaService")
public class MapaServiceImpl implements MapaService {
	
	@Autowired(required = true)
	private MapaDao mapaDao;

	@Override
	@Transactional
	public void salvar(Mapa mapa) {
		mapaDao.merge(mapa);
	}

}